package com.fooddiary.web.form;

import com.fooddiary.model.EatingType;

/**
 * 
 * @author Created by andrey.kuznetsov <br>
 * @author Last modified by $Author$ <br>
 * @author Last modified on $Date$ at revision $Revision$ <br>
 */
public class EatingTypeForm{

	private Integer id;
	private String displayName;
	private Short order;
	
	public EatingTypeForm() {
		
	}

	public EatingTypeForm(EatingType eatingType) {
		id = eatingType.getId();
		displayName = eatingType.getDisplayName();
		order = eatingType.getEatingOrder();
	}
	
	/**
	 * Returns unique id of eating type <br>
	 * @return {@link Integer};
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * Sets unique id of eating type <br>
	 * @param p_id - {@link Integer};
	 */
	public void setId(Integer p_id) {
		id = p_id;
	}

	/**
	 * Returns display name of eating type <br>
	 * @return {@link String};
	 */
	public String getDisplayName() {
		return displayName;
	}
	
	/**
	 * Sets display name of eating type <br>
	 * @param p_displayName - {@link String};
	 */
	public void setDisplayName(String p_displayName) {
		displayName = p_displayName;
	}

	/**
	 * Returns order of eating type <br>
	 * @return {@link Short};
	 */
	public Short getOrder() {
		return order;
	}

	/**
	 * Sets order of eating type <br>
	 * @param p_order - {@link Short};
	 */
	public void setOrder(Short p_order) {
		order = p_order;
	}
	
	
}
